Skip to main content

All Questions

9votes
1answer
2kviews

A C++17 std::function implementation

Some time ago I implemented dynamic_array and posted it on Code Review. It used std::function internally for type erasure. This ...
L. F.'s user avatar
  • 9,625
2votes
0answers
65views

Creating an array of distinct objects with an identical method that can be evaluated (mapped) at compile-time (constexpr)

In a ray tracing project that I'm trying to make compile-time (constexpr) for fun and challenge, I've run into a bit of an issue: I have an object (intersection) that needs to refer to one of a group ...
Sebastian's user avatar
3votes
0answers
525views

Replacing dynamic polymorhism with static polymorphism in C++ [closed]

Motivated due to the fact, that the avr-g++ places the vtables in RAM, I wrote a replacement using static polymorphy. Consider the following example: ...
wimalopaan's user avatar

close